package hhm.android.base.fragment;

import android.os.Bundle;
import android.widget.Toast;
import com.trello.rxlifecycle4.components.support.RxFragment;

public class BaseFragment extends RxFragment {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
    }

    public void showToast(String string) {
        Toast.makeText(getActivity(), string, Toast.LENGTH_SHORT).show();
    }

    public void showThrowable(Throwable throwable) {
        showToast(throwable.getMessage());
    }
}
